<div class="form-group" {guanlians}>
	<label class="col-xs-12 col-sm-3 col-md-2 right-label">{{check_show_lang('{title}')}}</label>
	<div class="col-xs-12 col-sm-8 col-lg-9">
		<div class="input-group">
			<input type="text" ng-model="{tovalue}.{name}" name="contenturl" class="form-control" autocomplete="off">
			<span class="input-group-btn">
				<button class="btn btn-primary btn-sm" type="button" style="margin:0" ng-click="pagedata.up_video();">选择视频</button>
			</span>
		</div>
		<div class="input-group" style="margin-top:.5em;" ng-if="{tovalue}.{name} && {tovalue}.{name}.slice(0,7)=='videos/'">
			<video src="{{tomedia({tovalue}.{name})}}" width="150" height="100" controls="controls"></video>
		</div>
		<div class="help-block">{help}</div>
	</div>
</div>
<script>
scope.pagedata.up_video=function(){
	if(window.config.this=='custom'){
		scope.choose_source(scope.{tovalue},['{name}','{thumb}'],'video');
	}else{
		scope.choose_source(scope.{tovalue},{name},'video');
	}
}
</script>
